import { fromJS } from "immutable";
import  setData from "./type"
const initialState = fromJS({
  swiper: [],
  hotcate:[],
  goodfood:[]
});

const reducer = (state = initialState,{type,data})=>{
    try{
        return setData[type](state,data)
    } catch(error){
        return state
    }
}
export default reducer
